package com.pinda.auth.view;

import com.pinda.auth.entity.PdAuthMenu;
import com.pinda.auth.entity.PdAuthResource;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * TODO 配置菜单及资源视图类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ConfigView {
    /**
     * 角色具有的菜单
     */
    private List<PdAuthMenu> menus;
    /**
     * 角色具有的资源
     */
    private List<PdAuthResource> resources;

    /**
     * 配置角色编号
     */
    private String roleId;

    /**
     * 批量添加角色菜单
     */
    private List<String> addMenu;
    /**
     *  批量删除角色菜单
     */
    private List<String> removeMenu;
    /**
     *  批量添加角色资源
     */
    private List<String> addResources;
    /**
     * 批量删除角色资源
     */
    private List<String> removeResources;
    /**
     * 配置人的id
     */
    private String createUserId;
    /**
     * 创建时间
     */
    private String createTime;
}
